﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AlarmList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.AlarmList" %>

<form id="Form1"  class="pageForm required-validate"
onsubmit="return validateCallback(this,navTabAjaxDone);">
<div class="pageContent AlarmList" style=" border-width:0px!important;">
    <div class="tabs" currentindex="0" eventtype="click">
        <div class="tabsHeader">
            <div class="tabsHeaderContent">
                <ul>
                    <li><a href="javascript:;"><span>电话回访警报</span></a></li>                
                </ul>
            </div>
        </div>
        <div class="tabsContent" style="padding:0px!important;">
            <div>            
                <asp:repeater id="rpOneMonth" runat="server">
                    <HeaderTemplate>                    
                    <table  class="table" width="100%" layoutH="60">
                    <thead>
                        <tr  >
                            <th width="10%">回访节点</th>
                            <th  width="10%">
                                机号
                            </th>
                            <th  width="10%">
                                交机日期
                            </th>
                            <th  width="10%">
                                应回访日期
                            </th>
                            <th  width="10%">
                                客户姓名
                            </th>
                            <th  align="center">
                                客户电话/手机
                            </th>
                            <th width="10%">
                                经销商
                            </th> 
                             <% if (HasPower(IHISCETeim.Web.Permission.修改))
                                {%> 
                            <th width="15%"></th>    
                            <%} %>                       
                        </tr>
                    </thead>
                    <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr  class="<%# Convert.ToDateTime(Eval("AlarmDate"))<DateTime.Now?"red":"" %>">
                            <td>
                                 <%# Eval("VisitType")%>天
                            </td>
				           <td>
                            <%# Eval("SerialNumber")%>
                            </td>
				            <td><%# Convert.ToDateTime(Eval("IntoDate")).ToString("yyyy-MM-dd")%></td>
                            <td><%# Convert.ToDateTime(Eval("AlarmDate")).ToString("yyyy-MM-dd")%></td>
				            <td><%# Eval("CustomerName")%></td>
				            <td><%# Eval("CustomerTel")%>/<%# Eval("CustomerMobile")%></td>				            
                            <td><%# Eval("AgentName")%></td>     
                             <% if (HasPower(IHISCETeim.Web.Permission.修改))
                                {%>                        
                             <td>
                                <a  class="btnAssign click" target="navTab" title="<%# Eval("SerialNumber")%>第<%# Eval("VisitType")%>天回访" rel="UReturn500VisitAdd<%#Eval("UWCID") %>" href="UserModel/UReturn500VisitAdd.aspx?UWCID=<%# Eval("UWCID")%>&AgentName=<%# Eval("AgentName") %>&VisitType=<%# Eval("VisitType") %>">回访</a>
                                 &nbsp;&nbsp;&nbsp;
                                 <a class="delete" href="sysAjaxDone.ashx?ajaxmethod=UpdateState&UWCID=<%# Eval("UWCID")%>&VisitType=<%# Eval("VisitType")%>" target="ajaxTodo" title="确定要标记为已回访吗?"><span>已回访</span></a>
                            </td>
                            <%} %>
			            </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </tbody>
                     </table>
                    
                    </FooterTemplate>
                </asp:repeater>
            </div>
            <div >
                <div class="panelBar">
                    <ul class="toolBar">
                     <% if (HasPower(IHISCETeim.Web.Permission.修改))
                        {%>
			            <li><a title="确实要对这些用户发送生日短信吗?" target="selectedTodo" postType="string" targetType="dialog"  rel="uwcids" href="sysAjaxDone.ashx?ajaxmethod=PersonalitySendBirthday" class="icon"><span>批量发送</span></a></li>
		            </ul>
                    <%} %>
	           </div>
                <asp:repeater id="rpBirthday" runat="server">
                    <HeaderTemplate>
                    <table class="table" width="100%" layouth="85">
                    <thead>
                        <tr  >  
                            <th width="25"><input type="checkbox" group="uwcids" class="checkboxCtrl"></th>
                            <th >
                                机号
                            </th>
                            <th >
                                交机日期
                            </th>              
                            <th >
                                客户姓名
                            </th>
                            <th  align="center">
                                客户电话/手机
                            </th>
                            
                             <th >
                                生日
                            </th>
                            <th >
                                经销商
                            </th>
                            <% if (HasPower(IHISCETeim.Web.Permission.修改))
                               {%>
                            <th></th> 
                            <%} %>                          
                        </tr>
                    </thead>
                    <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td><input name="uwcids" value="<%# Eval("UWCID") %>" type="checkbox"/></td>
				            <td>
                            <%# Eval("SerialNumber")%>
                            </td>
				            <td><%# Convert.ToDateTime(Eval("IntoDate")).ToString("yyyy-MM-dd")%></td>
				            <td><%# Eval("CustomerName")%></td>
				            <td><%# Eval("CustomerTel")%>/<%# Eval("CustomerMobile")%></td>
                             <td><%# Eval("Birthday")%></td>
                            <td><%# Eval("AgentName")%></td>    
                            <% if (HasPower(IHISCETeim.Web.Permission.修改))
                               {%>                      
                             <td>
                                <a  target="ajaxTodo"  class="btnAssign click" title="确定要发送吗?" href="sysAjaxDone.ashx?ajaxmethod=sendsingbirthday&mobile=<%# Eval("CustomerMobile")%>&UWCID=<%# Eval("UWCID")%>">生日短信</a>
                            </td>
                            <%} %>
			            </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </tbody>
                     </table>
                    </FooterTemplate>
                </asp:repeater>
            </div>
            <div>
                <div class="panelBar">
                    <ul class="toolBar">
                     <% if (HasPower(IHISCETeim.Web.Permission.修改))
                        {%>
                        <li><a title="确实要对这些用户发送保养提醒短信吗?" target="selectedTodo" postType="string"  targetType="dialog" rel="UMKAIDS" href="sysAjaxDone.ashx?ajaxmethod=PersonalitySendKeepAlarm" class="icon"><span>批量发送</span></a></li>
                    <%} %>
                    <% if (HasPower(IHISCETeim.Web.Permission.删除))
                        {%>
                        <li><a title="确实要删除保养提醒短信吗?" target="selectedTodo" postType="string"  targetType="dialog" rel="UMKAIDS" href="sysAjaxDone.ashx?ajaxmethod=deletekeepalarm" class="delete"><span>批量删除</span></a></li>
                    <%} %>
                    </ul>
                </div>
               <asp:repeater id="rpKeepAlarm" runat="server">
                    <HeaderTemplate>
                    <table class="table" width="100%" layouth="85">
                    <thead>
                        <tr  >   
                            <th width="25"><input type="checkbox" group="UMKAIDS" class="checkboxCtrl"></th>  
                            <th  >
                                机号
                            </th>
                            <th >
                                交机日期
                            </th>              
                            <th >
                                客户姓名
                            </th>
                            <th  >
                                客户手机
                            </th>
                            <th >
                                经销商
                            </th> 
                            <th >
                                服务电话
                            </th>
                            <th >
                                保养
                            </th> 
                            <th >
                                应提醒日期
                            </th> 
                             <% if (HasPower(IHISCETeim.Web.Permission.修改))
                                {%>   
                            <th></th>  
                            <%} %>                         
                        </tr>
                    </thead>
                    <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr target="sid_user" rel="<%# Eval("UMKAID") %>">
                             <td><input name="UMKAIDS" value="<%# Eval("UMKAID") %>" type="checkbox"/></td>
				            <td>
                            <%# Eval("SerialNumber")%>
                            </td>
				            <td><%# Convert.ToDateTime(Eval("IntoDate")).ToString("yyyy-MM-dd")%></td>
               
				            <td><%# Eval("CustomerName")%></td>
				            <td><%# Eval("CustomerMobile")%></td>          
                            <td><%# Eval("AgentName")%></td>
                            <td><%# Eval("AgentTel")%></td>
                            <td><%# Eval("KeepHours")%></td>
                            <td><%# Convert.ToDateTime(Eval("AlarmDate")).ToShortDateString()%></td>
                             <% if (HasPower(IHISCETeim.Web.Permission.修改))
                                {%> 
                            <td>
                                <a  target="ajaxTodo" class="btnAssign" title="确定要发送吗?" href="sysAjaxDone.ashx?ajaxmethod=sendsingkeepalarm&mobile=<%# Eval("CustomerMobile")%>&UMKAID=<%# Eval("UMKAID")%>">生日短信</a>
                            </td>
                            <%} %>
			            </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </tbody>
                     </table>
                    </FooterTemplate>
                </asp:repeater>
            </div>
        </div>
        <div class="tabsFooter">
            <div class="tabsFooterContent">
            </div>
        </div>
    </div>
</div>
</form>
